﻿using System.Collections.Generic;

namespace UFSoft.UBF.Cust.ClassView.MVC.UI
{
    /// <summary>
    ///     参照DTO
    /// </summary>
    public class RefDTO
    {
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }

        /// <summary>
        /// ComponentID
        /// </summary>
        public long ComponentID { get; set; }

        /// <summary>
        ///     名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///     显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        ///     类名
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        ///     FormId
        /// </summary>
        public string FormId { get; set; }

        /// <summary>
        ///     程序集
        /// </summary>
        public string AssemblyName { get; set; }

        /// <summary>
        ///     URI
        /// </summary>
        public string URI { get; set; }

        /// <summary>
        ///     过滤条件
        /// </summary>
        public string Filter { get; set; }

        /// <summary>
        ///     参照实体KEY
        /// </summary>
        public string RefEntityId { get; set; }

        /// <summary>
        ///     参照实体名
        /// </summary>
        public string RefEntityName { get; set; }

        /// <summary>
        ///     可多选
        /// </summary>
        public bool IsMultiSelect { get; set; }

        /// <summary>
        ///     支持多组织
        /// </summary>
        public bool ForMultOrg { get; set; }

        /// <summary>
        ///     引用字段集合
        /// </summary>
        public IList<RefFieldDTO> RefFields { get; set; }

        /// <summary>
        ///     参数字段集合
        /// </summary>
        public IList<RefParamDTO> RefParams { get; set; }

        /// <summary>
        ///     引用排序字段集合
        /// </summary>
        public IList<RefOrderFieldDTO> RefOrderFields { get; set; }
    }
}